package net.tensor.tensorprovider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Q
 */
@SpringBootApplication
@EnableBinding({Source.class})
@EnableTransactionManagement //开启事务支持
@MapperScan("net.tensor.tensorprovider.database.mapper")
public class TensorProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(TensorProviderApplication.class, args);
    }

}
